package com.dmap.community.po;

import java.io.Serializable;

public class Theme implements Serializable {
    /**
     * 帖子主键
     * 表字段 : community_theme.id
     */
    private Long id;

    /**
     * 用户id
     * 表字段 : community_theme.user_id
     */
    private Long userId;

    /**
     * 
     * 表字段 : community_theme.comment
     */
    private String comment;

    /**
     * 
     * 表字段 : community_theme.image_url
     */
    private String imageUrl;

    /**
     * 视频地址
     * 表字段 : community_theme.video_url
     */
    private String videoUrl;

    /**
     * 帖子类型  0-默认动态  1-聚宝盆 2-问答
     * 表字段 : community_theme.type
     */
    private Integer type;

    /**
     * 发表时间(秒)
     * 表字段 : community_theme.create_time
     */
    private Long createTime;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table community_theme
     *
     * @mbggenerated
     */
    private static final long serialVersionUID = 1L;

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table community_theme
     *
     * @mbggenerated
     */
    public Theme(Long id, Long userId, String comment, String imageUrl, String videoUrl, Integer type, Long createTime) {
        this.id = id;
        this.userId = userId;
        this.comment = comment;
        this.imageUrl = imageUrl;
        this.videoUrl = videoUrl;
        this.type = type;
        this.createTime = createTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table community_theme
     *
     * @mbggenerated
     */
    public Theme() {
        super();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column community_theme.id
     *
     * @return the value of community_theme.id
     *
     * @mbggenerated
     */
    public Long getId() {
        return id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column community_theme.id
     *
     * @param id the value for community_theme.id
     *
     * @mbggenerated
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column community_theme.user_id
     *
     * @return the value of community_theme.user_id
     *
     * @mbggenerated
     */
    public Long getUserId() {
        return userId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column community_theme.user_id
     *
     * @param userId the value for community_theme.user_id
     *
     * @mbggenerated
     */
    public void setUserId(Long userId) {
        this.userId = userId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column community_theme.comment
     *
     * @return the value of community_theme.comment
     *
     * @mbggenerated
     */
    public String getComment() {
        return comment;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column community_theme.comment
     *
     * @param comment the value for community_theme.comment
     *
     * @mbggenerated
     */
    public void setComment(String comment) {
        this.comment = comment == null ? null : comment.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column community_theme.image_url
     *
     * @return the value of community_theme.image_url
     *
     * @mbggenerated
     */
    public String getImageUrl() {
        return imageUrl;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column community_theme.image_url
     *
     * @param imageUrl the value for community_theme.image_url
     *
     * @mbggenerated
     */
    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl == null ? null : imageUrl.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column community_theme.video_url
     *
     * @return the value of community_theme.video_url
     *
     * @mbggenerated
     */
    public String getVideoUrl() {
        return videoUrl;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column community_theme.video_url
     *
     * @param videoUrl the value for community_theme.video_url
     *
     * @mbggenerated
     */
    public void setVideoUrl(String videoUrl) {
        this.videoUrl = videoUrl == null ? null : videoUrl.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column community_theme.type
     *
     * @return the value of community_theme.type
     *
     * @mbggenerated
     */
    public Integer getType() {
        return type;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column community_theme.type
     *
     * @param type the value for community_theme.type
     *
     * @mbggenerated
     */
    public void setType(Integer type) {
        this.type = type;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column community_theme.create_time
     *
     * @return the value of community_theme.create_time
     *
     * @mbggenerated
     */
    public Long getCreateTime() {
        return createTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column community_theme.create_time
     *
     * @param createTime the value for community_theme.create_time
     *
     * @mbggenerated
     */
    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table community_theme
     *
     * @mbggenerated
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", userId=").append(userId);
        sb.append(", comment=").append(comment);
        sb.append(", imageUrl=").append(imageUrl);
        sb.append(", videoUrl=").append(videoUrl);
        sb.append(", type=").append(type);
        sb.append(", createTime=").append(createTime);
        sb.append("]");
        return sb.toString();
    }
}